package com.hczt.xhminiapp.adminapi.modules.system.vo;


import com.hczt.xhminiapp.db.entity.SysPermission;
import com.hczt.xhminiapp.db.entity.SysUser;
import lombok.Data;

import java.util.LinkedList;
import java.util.List;

/**
 * @author 红创-马海强
 * @date 2019-03-13 14:30
 * @description
 */
@Data
public class SysUserInfo {
    private String userId;
    private String username;
    private String realName;
    private List<SysPermission> sysPermissionList;
    private List<String>  roleList;

    public SysUserInfo(SysUser sysUser, List<SysPermission> sysPermissionList, List<String> roleList){
        this.userId = sysUser.getUserId();
        this.username = sysUser.getUsername();
        this.realName = sysUser.getRealName();
        this.sysPermissionList = sysPermissionList;
        this.roleList = roleList;
    }
}
